﻿using System.Collections.Generic;
using System.Threading.Tasks;
using Newtonsoft.Json.Linq;
using VK.Client;

namespace VK.Actions
{
    public class Users
    {
        private readonly VkApiRequest _request;

        public Users(VkApiRequest request)
        {
            _request = request;
        }
        public record UserInfo(string FirstName, int Id, string LastName, bool CanAccessClosed, bool IsClosed, string photo_50);
        public Task<VkResponse<UserInfo[]>> Get(string accessToken, Dictionary<string, object> @params = null)
        {
            @params = new Dictionary<string, object>()
            {
                {"fields", "photo_50"}
            };
            return _request.post<UserInfo[]>("users.get", accessToken, @params);
        }
    }
}